﻿@model Adams.Public.DataTransfer.Mobile.Home.Index.PageLoad
@{
    Layout = "~/Views/Shared/_HomeLayout.cshtml";
    ViewBag.Title = "ADAMS";
}
@section Head{
    <link rel="stylesheet" type="text/css" href="/Content/Home/index.css" />
}
@*
<div class="donate">
    <a href="#">
        <img src="/Content/Images/donate.png" alt="donate" border="0" /></a></div>*@
<h1>
    Today' Prayer Times</h1>
<div class="daily-prayer">
    <div align="left" class="prayer">
        <ul>
            <li><strong>Prayer</strong></li>
            <li>Fajir</li>
            <li>Sunrise</li>
            <li>Duhr</li>
            <li>Asr</li>
            <li>Maghrib</li>
            <li>Isha</li>
        </ul>
    </div>
    <div align="left" class="prayer">
        <ul>
            <li><strong>Adhan</strong></li>
            <li>@Model.PrayerTime.Fajr</li>
            <li>@Model.PrayerTime.Sunrise</li>
            <li>@Model.PrayerTime.Duhr</li>
            <li>@Model.PrayerTime.Asr</li>
            <li>@Model.PrayerTime.Maghrib</li>
            <li>@Model.PrayerTime.Isha</li>
        </ul>
    </div>
    <div align="left" class="prayer">
        <ul>
            <li><strong>Iqamah</strong></li>
            <li>@Model.PrayerTime.FajrIqama</li>
            <li>&nbsp;</li>
            <li>@Model.PrayerTime.DuhrIqama</li>
            <li>@Model.PrayerTime.AsrIqama</li>
            <li>@Model.PrayerTime.MaghribIqama</li>
            <li>@Model.PrayerTime.IshaIqama</li>
        </ul>
    </div>
    <div style="clear: both;">
    </div>
</div>
@if (DateTime.Now.DayOfWeek == DayOfWeek.Friday && DateTime.Now.Hour < 15)
{
    <h1>
        Today' Jummah Times</h1>
    <div>
        @foreach (var jlocation in Model.JummahLocations)
        {
            <span><strong><a href="/prayers/jummah/@jlocation.Name.Replace(' ', '_')">@jlocation.Name</a></strong>
                - </span>
            <span>
                @foreach (var jprayer in jlocation.Prayers)
                {
                    @jprayer.Time<text> </text>
                }
            </span>
            <br />
        }
    </div>
    <br />
}
else if (Adams.Shared.CalendarHelper.GetHijriDate(DateTime.Now.AddDays(-1)).IndexOf("Ramadan") > 0 && DateTime.Now.Hour > 17)
{
    <h1>
        Today' Taraweh Times</h1>
    <div>
        @foreach (var tlocation in Model.TarawehLocations)
        {
            <span><strong><a href="/prayers/jummah/@tlocation.Name.Replace(' ', '_')">@tlocation.Name</a></strong>
                - </span>
            <span>
                @foreach (var tprayer in tlocation.Prayers)
                {
                    @tprayer.Time<text> </text>
                }
            </span>
            <br />
        }
    </div>
    <br />
}
else
{
}
<h1>
    Announcements</h1>
<div class="lefter">
    @foreach (var announcement in Model.Announcements)
    {
        <p>
            @if (announcement.Link.Length == 0)
            {
                <span><strong><a href="/Announcements/@announcement.ID">@announcement.Title</a></strong></span><br />
            }
            else
            {
                <span><strong>@announcement.Title</strong></span><br />
            }
            <span>@announcement.ShortDescription</span><br />
        </p>
    }
</div>
<h1>
    Events</h1>
<div class="lefter">
    @foreach (var evet in Model.Events)
    {
        <p>
            <span><strong><a href="/Events/@evet.ID">@evet.Title</a></strong></span><br />
            <span>@evet.StartDate.ToShortDateString() - @evet.ShortDescription</span><br />
        </p>
    }
    <span></span>&nbsp;<span class="readmore"><a href="/Events">more</a></span>
</div>
@*
<div class="bluebg-nav-area">
    <div class="nav-btn">
        <a href="aboutus.html">ANNOUNCEMENTS</a></div>
    <div class="nav-btn">
        <a href="aboutus.html">PRAYER TIMINGS</a></div>
    <div class="nav-btn">
        <a href="aboutus.html">EVENTS</a></div>
    <div style="clear: both;">
    </div>
</div>
<div class="bluebgnavwhite">
    <div class="nav-btn">
        <a href="aboutus.html">ABOUT US</a></div>
    <div class="nav-btn">
        <a href="aboutus.html">EDUCATION</a></div>
    <div class="nav-btn">
        <a href="aboutus.html">YOUTH</a></div>
    <div class="nav-btn">
        <a href="aboutus.html">ISLAM</a></div>
    <div class="nav-btn">
        <a href="aboutus.html">PRESS RELEASES/MEDIA</a></div>
    <div class="nav-btn">
        <a href="aboutus.html">INFORMATION</a></div>
    <div style="clear: both;">
    </div>
</div>
*@
@section Scripts {
}
